package com.ymatou.iapi.coupon.compare;

import java.io.File;

import com.ymttest.utils.JsonBeanHelper;
import com.ymttest.utils.compare.BaseCompareCall;
import com.ymttest.utils.compare.CallAPI;

public interface CouponCompareAPI {
	public String beanFileFolder = System.getProperty("user.dir") + File.separator + "resource" + File.separator
			+ "CompareData" + File.separator + "coupon" + File.separator+"bean";
	
	
	
	public String CheckCouponsJSON = beanFileFolder + File.separator + "CheckCoupons.json";
	public String ChooseCouponAutoJSON = beanFileFolder + File.separator + "ChooseCouponAuto.json";
	
	
	//new 
	public String couponUrl = "http://coupon.iapi.ymatou.com/";
	
	public CallAPI UserReceiveCouponAPI = new BaseCompareCall(couponUrl,"api/Promotion/UserReceiveCoupon");
	public CallAPI UserReceivePackageAPI = new BaseCompareCall(couponUrl,"api/Promotion/UserReceivePackage");
	public CallAPI ConversionCouponAPI = new BaseCompareCall(couponUrl,"api/Promotion/ConversionCoupon");
	public CallAPI GetConversionBatchAPI = new BaseCompareCall(couponUrl,"api/Promotion/GetConversionBatch");
	public CallAPI GetProductAvailablePlatformCouponNumAPI = new BaseCompareCall(couponUrl,"api/Promotion/getProductAvailablePlatformCouponNum");
	public CallAPI GetProductAvailablePlatformCouponListAPI = new BaseCompareCall(couponUrl,"api/Promotion/getProductAvailablePlatformCouponList");
	public CallAPI GetAllSellerBatchInfosAPI = new BaseCompareCall(couponUrl,"api/Promotion/GetAllSellerBatchInfos");
	public CallAPI UseCouponAPI = new BaseCompareCall(couponUrl,"api/Promotion/UseCoupon");
	public CallAPI ReturnCouponAPI = new BaseCompareCall(couponUrl,"api/Promotion/ReturnCoupon");
	public CallAPI GetCouponListByCodeAPI = new BaseCompareCall(couponUrl,"api/Promotion/GetCouponListByCode");
	public CallAPI GetBatchInfosAPI = new BaseCompareCall(couponUrl,"api/Promotion/GetBatchInfos");
	public CallAPI UpdateReceivedAndUsedCountAPI = new BaseCompareCall(couponUrl,"api/Promotion/updateReceivedAndUsedCount");
	public CallAPI ReceiveCouponBagAPI = new BaseCompareCall(couponUrl,"api/Promotion/ReceiveCouponBag");
	public CallAPI GetPagingUserCouponListAPI = new BaseCompareCall(couponUrl,"api/Promotion/GetPagingUserCouponList");
	public CallAPI GetUserCouponQuantityByBatchAPI = new BaseCompareCall(couponUrl,"api/Promotion/GetUserCouponQuantityByBatch");
	public CallAPI InvalidCouponAPI = new BaseCompareCall(couponUrl,"api/Promotion/invalidCoupon");
	public CallAPI GetUserCouponInfosByBatchAPI = new BaseCompareCall(couponUrl,"api/Promotion/GetUserCouponInfosByBatch");
	public CallAPI GetUserUsableCouponQuantityAPI = new BaseCompareCall(couponUrl,"api/Promotion/getUserUsableCouponQuantity");
	public CallAPI GetValidBatchesBySellerAPI = new BaseCompareCall(couponUrl,"api/Promotion/GetValidBatchesBySeller");
	public CallAPI GetNeedCancelVirtualCouponAPI = new BaseCompareCall(couponUrl,"api/Promotion/GetNeedCancelVirtualCoupon");
	public CallAPI UpdateCancelFlagAPI = new BaseCompareCall(couponUrl,"api/Promotion/UpdateCancelFlag");
	public CallAPI GetUserExpiringAmountAPI = new BaseCompareCall(couponUrl,"api/Promotion/getUserExpiringAmount");
	public CallAPI ChooseCouponAutoAPI = new BaseCompareCall(couponUrl,"api/Promotion/ChooseCouponAuto",()->JsonBeanHelper.getJsonBeanByAllPath(ChooseCouponAutoJSON));
	public CallAPI CheckCouponsAPI = new BaseCompareCall(couponUrl,"api/Promotion/CheckCoupons",()->JsonBeanHelper.getJsonBeanByAllPath(CheckCouponsJSON));
	
	//old 
	public String oldCouponUrl = "http://couponservice.iapi.ymatou.com/";
	
	public CallAPI old_UserReceiveCouponAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/UserReceiveCoupon");
	public CallAPI old_UserReceivePackageAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/UserReceivePackage");
	public CallAPI old_ConversionCouponAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/ConversionCoupon");
	public CallAPI old_GetConversionBatchAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/GetConversionBatch");
	public CallAPI old_GetProductAvailablePlatformCouponNumAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/getProductAvailablePlatformCouponNum");
	public CallAPI old_GetProductAvailablePlatformCouponListAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/getProductAvailablePlatformCouponList");
	public CallAPI old_GetAllSellerBatchInfosAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/GetAllSellerBatchInfos");
	public CallAPI old_UseCouponAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/UseCoupon");
	public CallAPI old_ReturnCouponAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/ReturnCoupon");
	public CallAPI old_GetCouponListByCodeAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/GetCouponListByCode");
	public CallAPI old_GetBatchInfosAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/GetBatchInfos");
	public CallAPI old_UpdateReceivedAndUsedCountAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/updateReceivedAndUsedCount");
	public CallAPI old_ReceiveCouponBagAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/ReceiveCouponBag");
	public CallAPI old_GetPagingUserCouponListAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/GetPagingUserCouponList");
	public CallAPI old_GetUserCouponQuantityByBatchAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/GetUserCouponQuantityByBatch");
	public CallAPI old_InvalidCouponAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/invalidCoupon");
	public CallAPI old_GetUserCouponInfosByBatchAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/GetUserCouponInfosByBatch");
	public CallAPI old_GetUserUsableCouponQuantityAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/getUserUsableCouponQuantity");
	public CallAPI old_GetValidBatchesBySellerAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/GetValidBatchesBySeller");
	public CallAPI old_GetNeedCancelVirtualCouponAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/GetNeedCancelVirtualCoupon");
	public CallAPI old_UpdateCancelFlagAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/UpdateCancelFlag");
	public CallAPI old_GetUserExpiringAmountAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/getUserExpiringAmount");
	
	
	public CallAPI old_ChooseCouponAutoAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/ChooseCouponAuto",()->JsonBeanHelper.getJsonBeanByAllPath(ChooseCouponAutoJSON));
	
	public CallAPI old_CheckCouponsAPI = new BaseCompareCall(oldCouponUrl,"api/Promotion/CheckCoupons",()->JsonBeanHelper.getJsonBeanByAllPath(CheckCouponsJSON));
	
}
